# encoding=utf-8
import os


'''
只有linux才能运行，window下没有fork函数
'''

print("process {0} start.....".format(os.getpid()))
pid = os.fork()
if pid == 0:
    print("This is child process and my pid is {0}, my father process is {1}".format(os.getpid(),os.getppid()))
else:
    print("This is Fater process, And Its child pid is {0}".format(pid))
